<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>外来用户发送详情</title>
    <link href="../../layui/css/layui.css" rel="stylesheet" type="text/css">
    <script src="../../layui/layui.js"></script>
    <script src="../../js/util.js"></script>
    <script>

        layui.use(['table','element'], function () {
            var table = layui.table;
            var tabledata = {
                elem: "#table",//表格id
                id: "modelReload", //id
                url: '/fied/find',
                method: 'post',
                request: {
                    pageName: 'page',
                    limitName: 'limit'

                },
                response: {
                    statusName: 'code',
                    statusCode: 0,
                    msgName: 'msg',
                    countName: 'count',
                    dataName: 'data'
                },
                where: {
                    mgrId: getUrlParam("mgrId"),
                    cityId: getUrlParam("cityId"),
                    stationId: getUrlParam("stationId"),
                    regionId: getUrlParam("regionId"),
                    way: getUrlParam("way"),
                    month: getUrlParam("month"),
                    startTime: getUrlParam("startTime"),
                    endTime:getUrlParam("endTime")
                },
                page: true,
                count: "count",
                limit: 10,
                limits: [10, 20, 30, 40, 50],
                layout: ['prev', 'page', 'next'],
                prev: "上一页",
                next: "下一页"
                , cols: [[ //表头
                    {field: 'userPlace', title: '省份'}
                    , {field: 'userCity', title: '地市'}
                    , {field: 'num', title: '数量'}
                ]],done: function (res) {
                    // console.log(JSON.stringify(res));
                    layer.close(index);
                }
            };
            var index = layer.load(1, {
                shade: [0.1,'#fff'] //0.1透明度的白色背景
            });
            table.render(tabledata);
        });
    </script>
</head>
<body>
<table id="table" style="margin-top:0px ">
</table>
</body>
</html>